package cn.christ.com.mobilesafe.view.activity_sjfd;

import android.content.Intent;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.OnClick;
import cn.christ.com.mobilesafe.R;
import cn.christ.com.mobilesafe.common.BaseActivity;
import cn.christ.com.mobilesafe.common.utils.SPUtils;
import cn.christ.com.mobilesafe.constant.Constants;

/**
 * Created by Administrator on 2018/7/22.
 */

public class LostFindActivity extends BaseActivity {
    @BindView(R.id.tv_safenum)
    TextView tvSafenum;
    @BindView(R.id.tv_protected)
    TextView tvProtected;
    @BindView(R.id.tv_enter_sjfd)
    TextView tvEnterSjfd;

    @Override
    public int getLayoutRes() {
        return R.layout.activity_lost_find;
    }

    @Override
    public void initView() {
        String safeNum = (String) SPUtils.get(Constants.SJFD_SAFE_NUM, "");
        tvSafenum.setText(safeNum);
        tvProtected.setSelected((Boolean) SPUtils.get(Constants.SJFD_OPEN, false));
    }

    @OnClick(R.id.tv_enter_sjfd)
    public void onViewClicked() {
        Intent intent = new Intent(this, SetingUpActivity1.class);
        startActivity(intent);
        finish();
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public void initPresenter() {

    }

}
